'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.post('/user/loginAndDown', controller.user.loginAndDown);
  router.post('/user/upload/excel/timeline', controller.upload.uploadFile);
  router.post('/user/upload/pdf/didi', controller.upload.uploadDidi);
  router.post('/user/upload/pdf/food', controller.upload.uploadFood);


  router.get('/admin/getAll', controller.admin.getAll);
  router.get('/admin/getFileZip', controller.admin.getFileZip);
  router.get('/admin/getUploadRecord', controller.admin.getUploadRecord);
};
